(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

le(0, Y) → true
le(s(X), 0) → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Rewrite Strategy: INNERMOST

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

S is empty.
Rewrite Strategy: INNERMOST

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
le, app, low, high, quicksort

They will be analysed ascendingly in the following order:
le < low
le < high
app < quicksort
low < quicksort
high < quicksort

(6) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
le, app, low, high, quicksort

They will be analysed ascendingly in the following order:
le < low
le < high
app < quicksort
low < quicksort
high < quicksort

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Induction Base:
le(gen_0':s4_0(0), gen_0':s4_0(0)) →RΩ(1)
true

Induction Step:
le(gen_0':s4_0(+(n7_0, 1)), gen_0':s4_0(+(n7_0, 1))) →RΩ(1)
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) →IH
true

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
app, low, high, quicksort

They will be analysed ascendingly in the following order:
app < quicksort
low < quicksort
high < quicksort

(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)

Induction Base:
app(gen_nil:cons5_0(0), gen_nil:cons5_0(b)) →RΩ(1)
gen_nil:cons5_0(b)

Induction Step:
app(gen_nil:cons5_0(+(n312_0, 1)), gen_nil:cons5_0(b)) →RΩ(1)
cons(0', app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b))) →IH
cons(0', gen_nil:cons5_0(+(b, c313_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(11) Complex Obligation (BEST)

(12) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
low, high, quicksort

They will be analysed ascendingly in the following order:
low < quicksort
high < quicksort

(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)

Induction Base:
low(gen_0':s4_0(0), gen_nil:cons5_0(0)) →RΩ(1)
nil

Induction Step:
low(gen_0':s4_0(0), gen_nil:cons5_0(+(n1267_0, 1))) →RΩ(1)
iflow(le(0', gen_0':s4_0(0)), gen_0':s4_0(0), cons(0', gen_nil:cons5_0(n1267_0))) →LΩ(1)
iflow(true, gen_0':s4_0(0), cons(0', gen_nil:cons5_0(n1267_0))) →RΩ(1)
cons(0', low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0))) →IH
cons(0', gen_nil:cons5_0(c1268_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(14) Complex Obligation (BEST)

(15) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
high, quicksort

They will be analysed ascendingly in the following order:
high < quicksort

(16) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) → gen_nil:cons5_0(0), rt ∈ Ω(1 + n18840)

Induction Base:
high(gen_0':s4_0(0), gen_nil:cons5_0(0)) →RΩ(1)
nil

Induction Step:
high(gen_0':s4_0(0), gen_nil:cons5_0(+(n1884_0, 1))) →RΩ(1)
ifhigh(le(0', gen_0':s4_0(0)), gen_0':s4_0(0), cons(0', gen_nil:cons5_0(n1884_0))) →LΩ(1)
ifhigh(true, gen_0':s4_0(0), cons(0', gen_nil:cons5_0(n1884_0))) →RΩ(1)
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) →IH
gen_nil:cons5_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(17) Complex Obligation (BEST)

(18) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) → gen_nil:cons5_0(0), rt ∈ Ω(1 + n18840)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
quicksort

(19) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
quicksort(gen_nil:cons5_0(n2497_0)) → gen_nil:cons5_0(n2497_0), rt ∈ Ω(1 + n24970 + n249702)

Induction Base:
quicksort(gen_nil:cons5_0(0)) →RΩ(1)
nil

Induction Step:
quicksort(gen_nil:cons5_0(+(n2497_0, 1))) →RΩ(1)
app(quicksort(low(0', gen_nil:cons5_0(n2497_0))), cons(0', quicksort(high(0', gen_nil:cons5_0(n2497_0))))) →LΩ(1 + n24970)
app(quicksort(gen_nil:cons5_0(n2497_0)), cons(0', quicksort(high(0', gen_nil:cons5_0(n2497_0))))) →IH
app(gen_nil:cons5_0(c2498_0), cons(0', quicksort(high(0', gen_nil:cons5_0(n2497_0))))) →LΩ(1 + n24970)
app(gen_nil:cons5_0(n2497_0), cons(0', quicksort(gen_nil:cons5_0(0)))) →RΩ(1)
app(gen_nil:cons5_0(n2497_0), cons(0', nil)) →LΩ(1 + n24970)
gen_nil:cons5_0(+(n2497_0, +(0, 1)))

We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).

(20) Complex Obligation (BEST)

(21) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) → gen_nil:cons5_0(0), rt ∈ Ω(1 + n18840)
quicksort(gen_nil:cons5_0(n2497_0)) → gen_nil:cons5_0(n2497_0), rt ∈ Ω(1 + n24970 + n249702)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(22) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
quicksort(gen_nil:cons5_0(n2497_0)) → gen_nil:cons5_0(n2497_0), rt ∈ Ω(1 + n24970 + n249702)

(23) BOUNDS(n^2, INF)

(24) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) → gen_nil:cons5_0(0), rt ∈ Ω(1 + n18840)
quicksort(gen_nil:cons5_0(n2497_0)) → gen_nil:cons5_0(n2497_0), rt ∈ Ω(1 + n24970 + n249702)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(25) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
quicksort(gen_nil:cons5_0(n2497_0)) → gen_nil:cons5_0(n2497_0), rt ∈ Ω(1 + n24970 + n249702)

(26) BOUNDS(n^2, INF)

(27) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)
high(gen_0':s4_0(0), gen_nil:cons5_0(n1884_0)) → gen_nil:cons5_0(0), rt ∈ Ω(1 + n18840)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(28) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(29) BOUNDS(n^1, INF)

(30) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)
low(gen_0':s4_0(0), gen_nil:cons5_0(n1267_0)) → gen_nil:cons5_0(n1267_0), rt ∈ Ω(1 + n12670)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(31) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(32) BOUNDS(n^1, INF)

(33) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
app(gen_nil:cons5_0(n312_0), gen_nil:cons5_0(b)) → gen_nil:cons5_0(+(n312_0, b)), rt ∈ Ω(1 + n3120)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(34) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(35) BOUNDS(n^1, INF)

(36) Obligation:

Innermost TRS:
Rules:
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
app(nil, Y) → Y
app(cons(N, L), Y) → cons(N, app(L, Y))
low(N, nil) → nil
low(N, cons(M, L)) → iflow(le(M, N), N, cons(M, L))
iflow(true, N, cons(M, L)) → cons(M, low(N, L))
iflow(false, N, cons(M, L)) → low(N, L)
high(N, nil) → nil
high(N, cons(M, L)) → ifhigh(le(M, N), N, cons(M, L))
ifhigh(true, N, cons(M, L)) → high(N, L)
ifhigh(false, N, cons(M, L)) → cons(M, high(N, L))
quicksort(nil) → nil
quicksort(cons(N, L)) → app(quicksort(low(N, L)), cons(N, quicksort(high(N, L))))

Types:
le :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
low :: 0':s → nil:cons → nil:cons
iflow :: true:false → 0':s → nil:cons → nil:cons
high :: 0':s → nil:cons → nil:cons
ifhigh :: true:false → 0':s → nil:cons → nil:cons
quicksort :: nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(37) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(38) BOUNDS(n^1, INF)